package com.social.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 
 * @TableName evaluate
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("评价表")
@TableName("evaluate")
public class Evaluate implements Serializable {
    /**
     * 评价的唯一标识
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 打分
     */
    private String score;

    /**
     * 评价内容
     */
    @Size(min=3,max = 100,message = "内容必须在[3,100]字")
    private String content;

    /**
     * 评价的信访id
     */
    @TableField("pe_id")
    private Long peId;


    @TableField("user_id")
    @ApiModelProperty("用户id")
    private Long userId;
    private static final long serialVersionUID = 1L;
}